#region Using directives
using System;
using System.Data;
#endregion

namespace WP.MF.DataEntity
{

	/*
	 * Created by Web Smart Create Code Tool
	 * At 4/6/2005
	 */

	//=========MPeriod  ============================
	[System.ComponentModel.DesignerCategory("Code")]
	public class MPeriodDEL:DataSet
	{
		//=========mPeriod ============================
		public const string TABLENAME_MPERIOD="mPeriod";
		public const string RECID="RecId";
		public const string MODULENAME="ModuleName";
		public const string PERIOD="Period";
		public const string STPRDDATE="StPrdDate";
		public const string ENPRDDATE="EnPrdDate";
		public const string PREYRSTPRDDATE="PreYrStPrdDate";
		public const string PREYRENPRDDATE="PreYrEnPrdDate";
		public const string PREPREYRSTPRDDATE="PrePreYrStPrdDate";
		public const string PREPREYRENPRDDATE="PrePreYrEnPrdDate";
		public const string CURPRD="CurPrd";
        public const string RECSTAMP = "RecStamp";
        private System.Collections.Specialized.NameValueCollection mVarCollection = new System.Collections.Specialized.NameValueCollection();
        public System.Collections.Specialized.NameValueCollection VarCollection
        {
            get { return mVarCollection; }
            set { mVarCollection = value; }
        }

		public MPeriodDEL()
		{
			//Create mPeriod structure
			CreatemPeriodStructure();

		}

		//=========mPeriod============================
		private void CreatemPeriodStructure()
		{
			DataTable table;
			DataColumnCollection DCC;
			DataColumn DC=new DataColumn();
			table=new DataTable (TABLENAME_MPERIOD);
			DCC=table.Columns;

			DC=new DataColumn(RECID,typeof(System.String));
			DCC.Add(DC);

			DC=new DataColumn(MODULENAME,typeof(System.String));
            DC.MaxLength = 2;
			DCC.Add(DC);

			DC=new DataColumn(PERIOD,typeof(System.String));
            DC.MaxLength = 2;
			DCC.Add(DC);

			DC=new DataColumn(STPRDDATE,typeof(System.DateTime));
			DCC.Add(DC);

            DC = new DataColumn(ENPRDDATE, typeof(System.DateTime));
			DCC.Add(DC);

            DC = new DataColumn(PREYRSTPRDDATE, typeof(System.DateTime));
			DCC.Add(DC);

            DC = new DataColumn(PREYRENPRDDATE, typeof(System.DateTime));
			DCC.Add(DC);

            DC = new DataColumn(PREPREYRSTPRDDATE, typeof(System.DateTime));
			DCC.Add(DC);

            DC = new DataColumn(PREPREYRENPRDDATE, typeof(System.DateTime));
			DCC.Add(DC);

			DC=new DataColumn(CURPRD,typeof(System.String));
			DCC.Add(DC);

            DC = new DataColumn(RECSTAMP, typeof(System.Byte[]));
            DCC.Add(DC);

			this.Tables.Add (table);
		}

	}
}